<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8">
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<link rel="stylesheet" href="static/css/layui.css">
		<link rel="stylesheet" href="static/css/style.css">


		<meta name="viewport"
			content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
		<meta content="yes" name="apple-mobile-web-app-capable">
		<meta content="yes" name="apple-touch-fullscreen">
		<meta content="telephone=no,email=no" name="format-detection">
		<meta name="App-Config" content="fullscreen=yes,useHistoryState=yes,transition=yes">
		<title>地图标注中心-提交地图定位</title>
		<meta name="keywords" content="地图标注中心;地图标注；百度地图标注；高德地图标注；腾讯地图标注">
		<meta name="description" content="地图标注中心;地图标注；百度地图标注；高德地图标注；腾讯地图标注">
		<link rel="stylesheet" type="text/css" href="static/css/common.css" />
		<script type="text/javascript" src="static/js/jquery.min.js"></script>
		<style>
			body {
				background-color: #ffffff;
				/* padding-bottom: 70px; */
			}

			/*头部*/
			.layui-header.header {
				display: flex;
				text-align: center;
				position: relative;
				background: #1a86ff;
				padding: 3px;
				color: #ffffff;
				line-height: 45px;
				font-size: 22px;

				flex-direction: row;
				justify-content: center;
				align-items: center;
			}

			.layui-header.header img {
				width: 26px;
				height: 26px;
			}

			.layui-input-block {
				margin-left: 0px;
				min-height: 36px;
			}

			.redstar {
				font-weight: bolder;
				color: red;
				margin-right: 5px;
			}

			.layui-container h4 {
				text-align: center;
				margin: 10px 0;
				font-size: 20px;
				font-weight: bold;
			}

			.layui-container .layui-btn-warm {
				width: 100%;
				height: 46px;
				line-height: 46px;
				font-size: 16px;
				color: #fff;
				background-color: #007bff;
				border-color: #007bff;
			}

			.layui-layer {
				border-radius: 12px !important;
			}

			.layui-layer-content .layui-btn-warm {
				width: 120px;
				height: 46px;
				line-height: 46px;
				font-size: 16px;
				color: #fff;
				background-color: #007bff;
				border-color: #007bff;
			}

			.layui-input:focus {
				color: #495057;
				background-color: #fff;
				border-color: #80bdff !important;
				outline: 0;
				-webkit-box-shadow: 0 0 0 .2rem rgba(0, 123, 255, .25);
				box-shadow: 0 0 0 .2rem rgba(0, 123, 255, .25)
			}

			.bg-f1 {
				height: 10px;
				background: #f1f1f1;
			}

			/*最新申请记录*/
			.apply-container {
				overflow: hidden;
			}

			.apply-container>.title {
				text-align: center;
				margin: 10px 0;
				font-size: 20px;
				font-weight: bold;
			}

			.apply-container .swiper {
				overflow: hidden;
				margin-bottom: 10px;
			}

			.apply-container .list {
				height: 200px;
			}

			.apply-container .list .list-item {
				padding: 10px 0;
				border-bottom: 1px solid #f1f1f1;
			}

			.apply-container .list .list-item .label {
				color: #00a2d4;
			}

			.apply-container .list .list-item .blue {
				color: #1e90ff;
			}

			.apply-container .list .list-item .value {
				margin-right: 8px;
			}

			/*常见问题*/
			.ques-container>.title {
				text-align: center;
				margin: 10px 0;
				font-size: 20px;
				font-weight: bold;
			}

			.ques-container>.item {
				margin-top: 20px;

			}

			.ques-container>.item .title {
				color: #111111;
				font-size: 18px;
				font-weight: bold;
				margin-bottom: 5px;
			}

			.ques-container>.item .desc {
				padding: 8px 15px;
				background: #f1f1f1;
				border-radius: 5px;
				font-size: 14px;
			}

			.ques-container>.item .desc p {
				margin-bottom: 10px;
			}

			.layui-form-checked[lay-skin=primary] i {
				border-color: #1e90ff;
				background-color: #1e90ff;
				color: #fff;
			}

			.layui-form-item .layui-form-checkbox[lay-skin=primary] {
				margin-top: 0;
			}

			.layui-form-item .layui-form-checkbox {
				margin-right: 0;
				margin-bottom: 0;
			}

			.layui-form-checkbox[lay-skin=primary] i {
				border-radius: 16px;
			}

			.layui-form-item a {
				color: #1e90ff;
			}

			.question {
				margin-top: 16px;
				overflow: hidden;
				background-color: #fff;
				border-radius: 10px;
			}

			.question .title {
				font-size: 20px;
				margin-bottom: 15px;
				font-weight: 700;
				text-align: center;
			}

			.question .question-container>.item {
				padding-bottom: 16px;
			}

			.question .question-container>.item .header-q {
				width: 18px;
				height: 18px;
				background-color: #4b8dff;
				color: #fff;
				line-height: 18px;
				text-align: center;
				font-size: 12px;
				border-radius: 18px 18px 0;
				margin-right: 9px;
			}

			.question .question-container>.item .header-a {
				width: 18px;
				height: 18px;
				color: #fff;
				line-height: 18px;
				text-align: center;
				font-size: 12px;
				border-radius: 18px 0 18px 18px;
				margin-right: 9px;
				background-color: #1ac98d;
			}

			.question .question-container>.item .item-child {
				margin-top: 8px;
				margin-bottom: 4px;
			}

			.question .question-container>.item .header-title {
				font-size: 14px;
				font-weight: 700;
			}

			.question .question-container>.item .content-desc {
				font-size: 12px;
				font-weight: 300;
			}

			.cj_item {
				margin-top: 10px;
			}

			.cj_item h2 {
				font-weight: bold;
				margin-bottom: 10px;
				font-size: 18px;
			}

			.cj_item p {
				padding: 8px 15px;
				background: #f1f1f1;
				border-radius: 5px;
				font-size: 14px;
			}

			.paytop h3 {
				margin: 6px 0;
				font-weight: bold;
			}

			.paytop {
				padding: .2rem 3% .3rem;
			}

			.paytop li {
				color: red;
				font-size: 13px;
				line-height: 24px;
			}

			.paytop li span {
				color: #39f;
				width: 28%;
				display: inline-block;
			}

			.paytop li i {
				font-style: normal;
				color: black;
			}

			.layui-container.secletpy {
				padding: .2rem 3% .3rem;
			}

			.layui-container.secletpy p {
				text-align: center;
				color: red;
			}

			.layui-container.secletpy p:nth-child(1) {
				margin-bottom: 10px;
				margin-top: 8px;
			}

			.layui-container.secletpy select {
				width: 60%;
				height: 30px;
				margin: 0 auto 20px;
				display: block;
			}

			.nymain {
				padding: .2rem 3% .3rem;
			}

			.zhifu ul li.zfb {
				font-size: .3rem;
				line-height: .45rem;
				background: url(./static/picture/zf_li2.png) 100% no-repeat;
				background-size: auto 50%;
			}

			.zhifu ul li.wx {
				font-size: .3rem;
				line-height: .45rem;
				background: url(./static/picture/zf_li.png) 100% no-repeat;
				background-size: auto 50%;
			}

			.layui-container.nymain.zhifu h3 {
				font-size: 20px;
				margin: 5px 0;
			}

			.layui-container.nymain.zhifu h3 span {
				float: right;
			}

			.layui-container.nymain.zhifu ul li {
				font-size: 13px;
				border-bottom: 1px solid #dfdfdf;
				padding: .1rem 0;
				background-size: auto 50%;
				line-height: 34px;
			}

			.layui-container.nymain.zhifu ul li img {
				height: 30px;
				width: 30px;
				display: inline-block;
				margin-right: 5px;
			}

			i.layui-icon.back {
				position: absolute;
				left: 10px;
			}
		</style>

	</head>
	<body>
		<div class="layui-header header" autumn="">
			<div class="layui-container" style="width: 100%;">
				<i class="layui-icon back" id="payback" style="font-size: 30px; color: #feffff;">&#xe65c;</i>
				<img src="static/picture/icon.jpg">
				<span>地图标注信息:</span>

			</div>
		</div>

		<div class="paytop">
			<h3>地图标注信息说明:</h3>
			<hr />
			<li>申请说明：店铺地图定位入驻全程为人工上传核对审核资料，需支付人工标注服务费，此费用为一次性收费，长期有效！
				<br />
				提交支付后申请的店铺信息将以气泡展示在地图上可搜索到！
			</li>
			<li>
				<span>商户标注名称：</span>
				<i id="location_name"></i>
			</li>
			<li>
				<span>标注详细地址：</span>
				<i id="address"></i>
			</li>
			<li>
				<span>申请人电话：</span>
				<i id="mobile"></i>
			</li>

		</div>
		<div class="bg-f1"></div>
		<div class="layui-container secletpy">
			<p>点击下方选择所需地图</p>
			<p>请点击选择您适合的地图套餐：</p>
			<select id="selectDu" name="pinpai" lay-verify="required">
				<!--<option value="0">百度地图位置</option>-->
				<!--<option value="1">腾讯地图位置</option>-->
				<!--<option value="2">高德地图位置</option>-->
				<!--<option value="3">微信地图位置</option>-->
				<!--<option value="4">滴滴地图位置</option>-->
				<!--<option value="5">抖音地图位置</option>-->
				<!--<option value="6">微信百度(热门)</option>-->
				<!--<option value="7">高德微信(热门)</option>-->
				<!--<option value="8">最常用四款(高德+微信+百度+腾讯)</option>-->
				<!--<option value="9">全部地图(不包含抖音小红书)</option>-->
				<!--<option value="10">指定地图代删除</option>-->
			</select>

		</div>

		<div class="bg-f1"></div>
		<!-- 支付 -->
		<div class="layui-container nymain zhifu">
			<h3>地图代标注费用:

				<span id="normalMon" style="color: red; font-weight: bold; font-size: 1.2em;">0</span>
				<span style="color: red;">￥</span>

			</h3>
			<hr />
			<ul>
				<li style="color: red;">服务说明：店铺地图定位需人工上传审核资料，上线时间需要 1-5个工作日（一次添加长期有效，全部地图享免费维护）！</li>
				<li class="zfb">
					<img src="./static/picture/zf_ali.png" alt="" />
					支付宝支付
				</li>
				<li class="wx">
					<img src="./static/picture/zf_weix.jpg" alt="" />
					微信支付
				</li>
			</ul>
			<div class="layui-form-item" style="margin-top: 16px;">
				<button type="button" class="layui-btn layui-btn-warm" id="post-btn" onclick="onSubmit()">提交订单</button>
			</div>
		</div>

		<!--常见问题END-->
		<div class="layui-container">
			<h4>常见问题</h4>
			<hr />
			<div class="cj_item">
				<h2>1、地图标注需要提供什么？</h2>
				<p>需要提供地图定位名称、定位详细地址、店铺/企业联系人名字、联系电话等，确认信息无误后即可提交信息开始审核，最快当天可以上线 </p>
			</div>
			<div class="cj_item">
				<h2>2、地图标注有什么好处?</h2>
				<p>地图标注服务，不仅可以让您的客户更快速的找到您，也会给商户带来三大核心平台价值: </p>
				<p>1、可以提高商户的在线曝光率，为商户开辟网络和导航“地盘" ;
					<br />
					<br />
					2、更多商户详情展示，给予商户更广泛的展示;
					<br />
					<br />
					3、提高消费转化率，让目标消费者更快速的搜到商户的位置并参考商户详情信息。

				</p>
			</div>
			<div class="cj_item">
				<h2>3、标注要多久才能在地图上搜到?</h2>
				<p>一般是在3-5个工作日， 最快当天即可上线。</p>
			</div>
			<div class="cj_item">
				<h2>4、地图标注服务是永久的吗?</h2>
				<p>地图标注审核通过，可以在所标主定位地图和APP上搜索导航到地点名称，这个没有期限，是长久性使用的。</p>
			</div>
			<div class="cj_item">
				<h2>5、付款流程是怎么样的?</h2>
				<p>提交商户基本信息后，审核专员会在24小时内与您联系，确认资料齐全位置精准无误，待1-7个工作日即可完成标注，通过地图搜索可找到您的商户位置。</p>
			</div>
			<div class="cj_item">
				<h2>6、关于售后问题详解</h2>
				<p>只要是在我公司办理标注业务的客户，后期可享受三年售后(如改名，地址迁移和免费维护) !</p>
			</div>
		</div>


		<footer class="">
			<dl class="footer1">
				<dt style="font-weight: normal;">© 2023 地图标注代办服务平台 —— All Right Reserved. </dt>
				<!-- <div class="copyright">
					<span>请务必阅读
						<a class="copyrightBtnOne" href="javascript: ;">《个人信息保护声明》</a>
						<a class="copyrightBtnTwo" href="javascript: ;">《地图代入驻有偿服务协议》</a></span>
				</div> -->
			</dl>

		</footer>

		<!--网站尾部-->





		<script>
			$('.copyrightBtnOne,.statement-btn-one').click(function() {

				$('.statementOne').toggle();

			})
			$('.copyrightBtnTwo,.statement-btn-two').click(function() {

				$('.statementTwo').toggle();

			})
		</script>
	</body>
	<script type="text/javascript" src="layui/layui.js"></script>
	<script type="text/javascript" src="static/js/form.js"></script>
	<!-- <script type="text/javascript" src="static/js/layer.js"></script> -->
	<script type="text/javascript" src="static/js/anime.min.js"></script>
	<script>
		var is_online_pay = "2";
		xTrans = [];
		anime.set('.list', {
			translateY: function(el, i, l) {
				xTrans[i] = {
					y: i * -300
				};
				return i * -300;
			},
		});
		
		
		
		anime({
			targets: xTrans,
			duration: 10000, //走一周持续时间
			easing: 'linear',
			y: "-=300",
			loop: true,
			update: function(anim) {
				anime.set('.list', {
					translateY: function(el, i, l) {
						return xTrans[i].y % 300
					}
				});
			}
		})

		var agreementCheck = true;
		var onSubmit, alertAgreement, onAgreement;
		var result = null;
        
		layui.use(['layer', 'form'], function() {
			var layer = layui.layer
			form = layui.form;
			var content = $('#customer_service_notice').html();
			alertAgreement = function() {
				layer.open({
					type: 1,
					title: '',
					content: content,
					end: function() {
						result = null;
					}
				});
			}
			// 同意服务协议
			onAgreement = function() {
				if (result && result.order) {
					layer.load();
					$.ajax({
						url: "",
						dataType: "json",
						type: "post",
						// headers: {
						//     'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
						// },
						success: function(res) {

							layer.closeAll();
							if (is_online_pay == 1) {
								location.href = result.pay_url;
							} else {
								layer.alert('您的地图标记申请已提交，客服将联系您核实信息，并标注上线', {
									title: '提示'
								});
							}
						},
						error: function(err) {
							layer.closeAll();
						}
					});
				} else {
					layer.closeAll();
				}

			}
			
            let mapList = []
            // 获取地图类型和价格数据
			$.ajax({
			    url: "/api/index/mapDataList",
					dataType: "json",
					type: "get",
					headers: {
					    'Content-type': 'multipart/form-data'
					},
					success:function(res){
					    console.log(res.data.list)
					    mapList = res.data.list
					    res.data.list.forEach((item,index)=>{
					        console.log(item,index)
					        $('#selectDu').append(`<option value="${index}">${item.name}</option>`)
					    })
					    $('#normalMon').text(res.data.list[0].money)
					}
			})
		let	mapId = "1"
			// 选择不同地图
			$("#selectDu").on("change", function() {
  const value = $(this).val();
//   const text = $(this).find("option:selected").text();

  $('#normalMon').text(mapList[value].money)
  mapId = mapList[value].id
});
			
			// 点击按钮返回
			$('#payback').click(function() {
				window.location.href = 'detail.html';
			});
			// 切换支付类型
			let payTtpe = 'alipay'
			$('.zfb').click(function(){
				$('.zfb').css('background-image', 'url(./static/picture/zf_li2.png)')
				$('.wx').css('background-image', 'url(./static/picture/zf_li.png)')
				payTtpe = 'alipay'
			})
			
			$('.wx').click(function(){
				$('.wx').css('background-image', 'url(./static/picture/zf_li2.png)')
				$('.zfb').css('background-image', 'url(./static/picture/zf_li.png)')
				payTtpe = 'wxpay'
			})
			// 获取浏览器存储的数据
			let getStorageUser = JSON.parse(localStorage.getItem('userData'))
			console.log(getStorageUser)
			$("#location_name").text(getStorageUser.name)
			$("#address").text(getStorageUser.address)
			$("#mobile").text(getStorageUser.mobile)
			
			form.render();
			form.on('checkbox(agreement)', function(data) {
				agreementCheck = data.elem.checked; //是否被选中，true或者false
			});
			onSubmit = function() {
			    let payId = JSON.parse(localStorage.getItem('subId'))
			    
				$.ajax({
					url: `/api/index/postPayData?id=${payId}&map_id=${mapId}&type=${payTtpe}`,
					dataType: "json",
					type: "post",
					// headers: {
					//     'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
					// },
					beforeSend: function() {
						$("#post-btn").attr('disabled', "true");
						$("#post-btn").html("提交中...");
					},
					
					success: function(res) {
					    console.log(res)
					    window.location.href = res.data.jumpUrl;
				// 		if (res.code == 1) {
				// 			$("#post-btn").removeAttr('disabled');
				// 			$("#post-btn").html("立即提交");
				// 			$("#post-btn").attr('disabled', "true");
				// 			$("#post-btn").html("提交成功");
				// 			window._agl && window._agl.push(['track', ['success', {
				// 				t: 3
				// 			}]]);
				// 			layer.alert('您的地图标记申请已提交，客服将联系您核实信息，并标注上线', {
				// 				title: '提示'
				// 			});
				// 			// alertAgreement();
				// 			result = res;
				// 		} else {
				// 			layer.alert(res.msg, {
				// 				title: '提示'
				// 			});
				// 		}
					},
					error: function(err) {
						if (typeof err.responseJSON.message != 'undefined') {
							layer.msg(err.responseJSON.message);
						}
						$("#post-btn").removeAttr('disabled');
						$("#post-btn").html("立即提交");
					}
				});
			}
		});
		var currentDate = new Date();
		var year = currentDate.getFullYear();
		var month = currentDate.getMonth() + 1;
		var day = currentDate.getDate();
		if (month < 10) {
			month = '0' + month;
		}
		if (day < 10) {
			day = '0' + day;
		}
		var mydate = year + '-' + month + '-' + day;
		$('.nowtime').html(mydate);
	</script>
</html>